//
//  dataService.m
//  movie
//
//  Created by 李丹阳 on 15/7/21.
//  Copyright (c) 2015年 李丹阳. All rights reserved.
//

#import "dataService.h"

@implementation dataService

+ (id)getJSONDataFromFile:(NSString *)fileName{
    NSString* filePath = [[NSBundle mainBundle]pathForResource:fileName ofType:@"json"];
    NSData* data = [NSData dataWithContentsOfFile:filePath];
    
   id JSONData = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    
    return JSONData;
}
@end
